﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Research.Kinect.Nui;
using KinectUserManager;

namespace KinectXNATools
{
    public static class XNAMathHelper
    {
        public static Vector3 XYZtoVector3(VectorXYZ v)
        {
            return new Vector3(v.X, v.Y, v.Z);
        }
        public static Point ToPoint(Vector2 v)
        {
            return new Point((int)( v.X),(int)(v.Y));
        }
        public static Point ToPoint(VectorXY v)
        {
            return new Point((int)(v.X), (int)(v.Y));
        }
        public static Vector2 ToVector2(VectorXY v)
        {
            return new Vector2((int)(v.X), (int)(v.Y));
        }
        public static Vector2 ToVector2(Point p)
        {
            return new Vector2((int)(p.X), (int)(p.Y));
        }
        public static Vector3 ToVector3(Point p)
        {
            return new Vector3((int)(p.X), (int)(p.Y),0);
        }
        public static Vector3 ToVector3(VectorXY v)
        {
            return new Vector3((int)(v.X), (int)(v.Y),0);
        }
    }

}
